package island.gotenyama.beans;

import org.apache.pivot.wtk.validation.Validator;

/**
 * Validates that text represents a valid dollar value.
 */
public class CurrencyValidator implements Validator {

	@Override
	public boolean isValid(String text) {
		if (text == null || text.equals("")) {
			return true;
		}
		return text.matches("^[0-9]*$");
	}
}
